{* Extend our master template *}
{extends file="master.tpl"}

{* This block is defined in the master.php template *}
{block name=content}
    <div class="row">
        <div class="col-md-12">
            <form id="form" class="form-horizontal" method="post">
                <input type="hidden" name="id" value="{$user->id}" />
                {$csrf|form_hidden}
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-btns">
                            <a href="#" class="panel-close">&times;</a>
                            <a href="#" class="minimize">&minus;</a>
                        </div>
                        <h4 class="panel-title">{'change_password_heading'|lang}</h4>
                        <p></p>
                    </div>
                    <div class="panel-body">
                        
                        <div id="infoMessage">{$message}</div>

                        <div class="form-group">
                              <label class="col-sm-3 control-label">{'change_password_old_password_label'|lang} <span class="asterisk">*</span></label>
                              <div class="col-sm-9">
                                    <input type="text" class="form-control" name="old_password" value="{$old_password['value']}" required>
                              </div>
                        </div>
                        
                        <div class="form-group">
                              <label class="col-sm-3 control-label">{'change_password_new_password_label'|lang} <span class="asterisk">*</span></label>
                              <div class="col-sm-9">
                                    <input type="text" class="form-control" name="new_password" value="{$new_password['value']}" required>
                              </div>
                        </div>
                        
                        <div class="form-group">
                              <label class="col-sm-3 control-label">{'change_password_new_password_confirm_label'|lang} <span class="asterisk">*</span></label>
                              <div class="col-sm-9">
                                    <input type="text" class="form-control" name="new_password_confirm" value="{$new_password_confirm['value']}" required>
                              </div>
                        </div>

                        <div class="form-group">
                              <label class="col-sm-3 control-label"></label>
                              <div class="col-sm-9">
                                    <input type="text" class="form-control" name="user_id" value="{$user_id['value']}" required>
                              </div>
                        </div>

                    </div><!-- panel-body -->
                    <div class="panel-footer">
                        <div class="row">
                            <div class="col-sm-9 col-sm-offset-3">
                                <button class="btn btn-primary">Submit</button>
                            </div>
                        </div>
                    </div>
                </div><!-- panel -->
            </form>
        </div>
    </div>
{/block}